//
//  KyShicaiCollectionCell.m
//  KCZ_B段项目
//
//  Created by dllo on 15/11/4.
//  Copyright © 2015年 Sky. All rights reserved.
//

#import "KyShicaiCollectionCell.h"
#import "FitHeader.h"
#import <UIImageView+WebCache.h>
@implementation KyShicaiCollectionCell
-(void)setShicaiTypeModel:(KyShicaiModel *)shicaiTypeModel
{
    if (_shicaiTypeModel != shicaiTypeModel) {
        _shicaiTypeModel = shicaiTypeModel;
    }
    _shicaiImage.contentMode = 1;
    [_shicaiImage sd_setImageWithURL:[NSURL URLWithString:shicaiTypeModel.image]placeholderImage:[UIImage imageNamed:@"170100"]];
}
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _shicaiImage = [[UIImageView alloc]init];
        [self.contentView addSubview:_shicaiImage];
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    _shicaiImage.frame = CGRectMake(0, 0, 169 * wt, 100 * ht);
}
@end
